﻿@model IEnumerable<BEX.WebUI.Models.ArbitrageRuleModel>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.ID)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ExchangeA)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ExchangeB)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Pair)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Percent)
        </th>
        <th></th>
    </tr>

    @foreach (var item in Model)
    {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.ID)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.ExchangeA)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.ExchangeB)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.Pair)
            </td>
           
            <td>
                @Html.DisplayFor(modelItem => item.Percent)
            </td>

            <td>
                @Html.ActionLink("Edit", "Edit", new { id = item.ID }) |
            @Html.ActionLink("Details", "Details", new { id = item.ID }) |
            @Html.ActionLink("Delete", "Delete", new { id = item.ID })
            </td>
        </tr>
    }

</table>
